Skip to main content

Documentation Index

Fetch the complete documentation index at: https://sequence-0fb8d9e6-api_docs.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Parameters

NameTypeDescription
params.configSdkConfigOptional configuration parameters
params.marketplaceConfigMarketplaceConfigOptional Marketplace configuration parameters
params.cardTypeCardTypeOptional filter by marketplace type
params.queryanyOptional React Query configuration

Returns

Query result containing an array of collections with metadata configured in Sequence Builder

Import

import { useCollection } from "@0xsequence/marketplace-sdk/react";

Example

Basic usage:
const { data: collections, isLoading } = useListCollections();

if (isLoading) return <div>Loading collections...</div>;

return (
  <div>
    {collections?.map(collection => (
      <div key={collection.itemsAddress}>
        {collection.name}
      </div>
    ))}
  </div>
);
Filtering by marketplace type:
const { data: marketCollections } = useListCollections({
	cardType: 'market'
});